
/**
 * WelcomeActivity
 * 欢迎界面
 * @author guanlei1981gmail.com
 * @version 1.0
 * */
package com.snail.activity;

import java.util.Timer;
import java.util.TimerTask;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;

public class ActivityWelcome extends ActivityBase {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_welcome);

		final Timer timer = new Timer();
		timer.schedule(new TimerTask() {

			@Override
			public void run() {
				startActivity(new Intent(ActivityWelcome.this,
						ActivityLogin.class));
				finish();
				timer.cancel();
			}
		}, 2000);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.activity_welcome, menu);
		return true;
	}
}
